package com.xingkeduo.service.impl;

import com.xingkeduo.dao.operation.TShopsMapper;
import com.xingkeduo.model.po.TShops;
import com.xingkeduo.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 中文输入法发挥不稳定的刘川
 * @Date: 19-3-14 下午2:22
 */
@Service
public class ShopServiceImpl implements ShopService {
    @Autowired
    TShopsMapper shopsMapper;

    @Override
    public List<TShops> getEnableShopIdAndNameList() {
        return shopsMapper.getIdAndNameList();
    }

    @Override
    public List<Long> getEnableShopIdList() {
        return shopsMapper.getEnableShopIdList();
    }

    @Override
    public Integer getMaxTimeByShopId(Long shopId) {
        return shopsMapper.getMaxTimeByShopId(shopId);
    }

    @Override
    public Integer getSeatNumByShopId(Long shopId) {
        return shopsMapper.getSeatNumByShopId(shopId);
    }
}
